
app.service 'Blog', ['$resource', ($resource)->
	return $resource '/main/blog/:id'
]

app.service 'Activity', ['$resource', '$http', '$q', ($resource, $http, $q)->
	Activity = $resource '/main/activity/:id'
	Activity.getSignList = (id)->
		delay = $q.defer()
		$http.get('/main/activity/'+id+'/sign')
		.success (data)->
			delay.resolve data
		.error (err)->
			delay.reject err
		return delay.promise
	return Activity
]

app.service 'Setting', ['$resource', ($resource)->
	return $resource '/main/setting'
]

